package PHANVANVUONG.ARRAY.HOMEWORK;

public class Models01 {
	public int Tbtren5(double[] A) {
		int dem = 0;
		for (int i = 0; i < A.length; i++) {
			if (A[i] >= 5)
				dem++;
		}
		return dem;
	}

	public int TBduoi5(double[] A) {
		int dem = 0;
		for (int i = 0; i < A.length; i++) {
			if (A[i] < 5)
				dem++;
		}

		return dem;
	}

}
